from flask import url_for, request
from flask_restful import Resource

from restful.api__.session import login_required_current_user_generate
from restful.response import ResponseSuccess

#TODO
class SystemAllFunctions(Resource):
    @login_required_current_user_generate
    def get(self,current_user):
        return ResponseSuccess(data=[{
            'img':url_for('static', filename='img/default.png'),
            'title':'标题测试',
            'desc':'描述测试',
            'link':'#'
        },{
            'img':url_for('static', filename='img/default.png'),
            'title':'标题测试',
            'desc':'描述测试',
            'link':'#'
        }])